package es.ats.codington.festival.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import es.ats.codington.festival.domain.EventSignUp;

public class EventSignUpMapper implements RowMapper<EventSignUp>{
	
	
	@Override
	public EventSignUp mapRow(ResultSet resultSet, int numRow) throws SQLException {
		EventSignUp eventSignUp = new EventSignUp();
		eventSignUp.setEventId(resultSet.getInt("EventId"));
		eventSignUp.setVisitorId(resultSet.getInt("VisitorId"));
		return eventSignUp;
	}

}
